POV-Ray : Newsgroups : povray.unofficial.patches : megapov bug: condition inside declaration of function{pigment{}} : Re: megapov bug: condition inside declaration of function{pigment{}} Server Time
8 Jul 2024 16:34:35 EDT (-0400)
  Re: megapov bug: condition inside declaration of function{pigment{}}  
From: Scott Hill
Date: 22 Aug 2001 07:51:21
Message: <3b839cb9@news.povray.org>
"Wlodzimierz ABX Skiba" <abx### [at] abxartpl> wrote in message
news:3b837efb@news.povray.org...
>
> error: No matching } in pigment, # found instead.
>

    I've had this problem - it seems 'function' uses its own parsing
routines which don't support the entire set of POV keywords... The solution
is to do something like this :

#declare Q=no;
#declare RadialPigment=pigment{radial#if(Q)turbulence.3#end}
#declare RadialFunction=function{pigment{RadialPigment}}

--
Scott Hill.
Software Engineer.
E-Mail        : sco### [at] innocentcom
Pandora's Box : http://www.pandora-software.com

*Everything in this message/post is purely IMHO and no-one-else's*


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.